package com.example.demo.entity;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.ManyToOne;

import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;

/**
 * 售后返利2表（所有数据）
 * @author 龚海千
 *
 */
@Entity
public class AfterSaleBackMoney2 {
	private Integer id;
	private Integer years;
	private Integer month;
	private AfterSaleBackMoney aftersalebackmoney;
	//
	private String backMonkeyType;//厂家返利
	private String backMonkeyProject; //厂家返利项目
	private Float backMonkeyNumber; //厂家返利金额
	private String fictoryBackMonkeyType;//非厂家返利
	private String fictoryBackMonkeyProject; //非厂家返利项目
	private Float fictoryBackMonkeyNumber; //非厂家返利金额
	private Date beginDate;//起始日期
	private Date endDate;//起始日期
	
	@Id
	@GeneratedValue
	@JsonIgnore
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Integer getYears() {
		return years;
	}
	public void setYears(Integer years) {
		this.years = years;
	}
	@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Integer getMonth() {
		return month;
	}
	public void setMonth(Integer month) {
		this.month = month;
	}
	@ManyToOne
	public AfterSaleBackMoney getAftersalebackmoney() {
		return aftersalebackmoney;
	}
	public void setAftersalebackmoney(AfterSaleBackMoney aftersalebackmoney) {
		this.aftersalebackmoney = aftersalebackmoney;
	}
	public String getBackMonkeyType() {
		return backMonkeyType;
	}
	public void setBackMonkeyType(String backMonkeyType) {
		this.backMonkeyType = backMonkeyType;
	}
	public String getBackMonkeyProject() {
		return backMonkeyProject;
	}
	public void setBackMonkeyProject(String backMonkeyProject) {
		this.backMonkeyProject = backMonkeyProject;
	}
	public Float getBackMonkeyNumber() {
		return backMonkeyNumber;
	}
	public void setBackMonkeyNumber(Float backMonkeyNumber) {
		this.backMonkeyNumber = backMonkeyNumber;
	}
	public String getFictoryBackMonkeyType() {
		return fictoryBackMonkeyType;
	}
	public void setFictoryBackMonkeyType(String fictoryBackMonkeyType) {
		this.fictoryBackMonkeyType = fictoryBackMonkeyType;
	}
	public String getFictoryBackMonkeyProject() {
		return fictoryBackMonkeyProject;
	}
	public void setFictoryBackMonkeyProject(String fictoryBackMonkeyProject) {
		this.fictoryBackMonkeyProject = fictoryBackMonkeyProject;
	}
	public Float getFictoryBackMonkeyNumber() {
		return fictoryBackMonkeyNumber;
	}
	public void setFictoryBackMonkeyNumber(Float fictoryBackMonkeyNumber) {
		this.fictoryBackMonkeyNumber = fictoryBackMonkeyNumber;
	}
	public Date getBeginDate() {
		return beginDate;
	}
	public void setBeginDate(Date beginDate) {
		this.beginDate = beginDate;
	}
	public Date getEndDate() {
		return endDate;
	}
	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}
	

}
